@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --p-font: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  --h-font: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-font-weight: 600;

  --primary: #cc2236;
  --primaryRGB: 204, 34, 54;

  --secondary: #1b1b1b;
  --secondaryRGB: 27, 27, 27;

  --third: #f8f8f8;
  --thirdRGB: 226, 222, 211;

  /* nav settings */
  --nav-top-bg: rgb(255, 255, 255, 0);
  --nav-scrolled-bg: var(--third);
  --nav-height: 6rem;
  --logo-size-lg: 36px;
  --logo-size-mbl: 36px;
  --logo-top-op: 0;
  --logo-top-wht: brightness(0) invert(1);
  /* top */
  --nav-link-top-clr: #fff;
  --nav-link-top-hvr-clr: var(--primary);
  --nav-link-top-border: #fff;
  --nav-icon-top-clr: #fff;
  --nav-icon-top-hvr-clr: var(--primary);
  /* scrolled & pages */
  --nav-link-scrolled-clr: var(--secondary);
  --nav-link-scrolled-hvr-clr: var(--primary);
  --nav-link-scrolled-border: var(--secondary);
  --nav-icon-scrolled-clr: var(--secondary);
  --nav-icon-scrolled-hvr-clr: var(--primary);
  /* mobile menu */
  --menu-link-clr: var(--secondary);
  --menu-link-border: var(--primary);
  --menu-footer-bg:  var(--secondary);
  --menu-social-clr: var(--third);
  --menu-social-hvr-clr: var(--primary);
  /* anna modern reset */
  --palette-navigationBackground-color: var(--nav-scrolled-bg);

  /* hero */
  --hero-height-fb: 100vh;
  --hero-height: 100dvh;
  --hero-overlay:
    radial-gradient(ellipse at 60% 50%, transparent 30%, rgb(0,0,0,.55) 100%),
    linear-gradient(180deg, rgb(0,0,0,.25) 0%, rgb(0,0,0,.1) 40%, rgb(0,0,0,.5) 100%);
  --hero-content-width: 860px;
  /* title main */
  --hero-title-size-lg: 65px;
  --hero-title-size-mbl: 45px;
  --hero-title-weight: 300;
  --hero-title-spacing: 0.04em;
  --hero-title-case: uppercase;
  --hero-title-clr: #fff;
  /* title sub */
  --hero-sub-size-lg: 14px;
  --hero-sub-size-mbl: 13px;
  --hero-sub-weight: 400;
  --hero-sub-spacing: 4px;
  --hero-sub-font: var(--p-font);
  --hero-sub-case: uppercase;
  /* tabs */
  --number-of-tabs: 2;
  --hero-tab-padding: 1em 2.5em;
  --hero-tab-txt-size: 0.75em;
  --hero-tab-txt-spacing: 3px;
  --hero-tab-weight: 500;
  --hero-tab-case: uppercase;
  --hero-tab-txt-clr: #fff;
  --hero-tab-bg-clr: var(--primary);
  --hero-tab-hvr-txt-clr: #fff;
  --hero-tab-hvr-bg-clr: var(--secondary);

  /* luxury design tokens */
  --surface: #fff;
  --surface-subtle: var(--third);
  --ink: #1a1a1a;
  --ink-light: #5a5a5a;
  --rule: rgba(0, 0, 0, .1);
  --transition: 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --section-pad: clamp(60px, 6vw, 120px);

  /* settings alias */
  --primary-color: var(--primary, #46a7bf);
  --secondary-color: var(--secondary, #022337);
}


/* ── PAGE RESETS ──────────────────────────────────────────── */
#anna-modern-fold {
  margin-top: calc(var(--nav-height) * -1);
}

/* live hide */
.home #anna-modern-fold,
.home #widget-ctas {
  display: none;
}

.home section[data-cy="footer-valuation"] {
  display: none;
}

/* anna hide */
.home #search-tabs,
.home > section[aria-label="property search hero"] {
  display: none;
}

/* Page Resets */
.home #content {
  width: 100%;
  padding: 0;
}

.home .section-width-wrapper {
  padding: 0 !important;
  max-width: 100% !important;
}

.home #sidebar {
  display: none;
}

.home > div.lg\:px-40 {
  padding: 0 !important;
}

.home #content > section {
  margin: 0 !important;
}

.home header {
  position: fixed;
}

/* modern fixes */
#rg-valuation-iframe-0 {
  min-height: 25rem !important;
}

.property-detail-listing-vertical:hover {
  outline: none !important;
}


/* ── FONTS ────────────────────────────────────────────────── */
body *:is(p, li, a, label, legend, button, option, summary) {
  font-family: var(--p-font) !important;
  letter-spacing: 0.01em;
}

body *:is(h1, h2, h3, h4, h5, h6, .text-hero) {
  font-family: var(--h-font) !important;
  line-height: 1.1;
}

body h1,
body.home h2,
body .text-hero {
  font-weight: var(--header-font-weight);
}

body p {
  line-height: 1.75;
  color: var(--ink-light);
}


/* ── NAVIGATION ───────────────────────────────────────────── */
.home header.custom-scroll,
.pages header,
nav.top-nav {
  box-shadow: 0 1px 0 var(--rule), 0 4px 24px rgb(0, 0, 0, .06);
  border-bottom: none;
}

.home header.custom-scroll {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body > header > nav.relative > div.mx-0.pr-2.pl-6.lg\:px-8 > div {
  height: var(--nav-height);
}

body header #nav-logo {
  height: var(--logo-size-mbl);
}

@media (min-width: 768px) {
  body header #nav-logo {
    height: var(--logo-size-lg);
  }
}

body.home header:not(.custom-scroll) #nav-logo img {
  filter: var(--logo-top-wht);
  opacity: var(--logo-top-op);
  transition: var(--transition);
}

body.home header > nav > div:first-child {
  transition: var(--transition);
}

body.home header:not(.custom-scroll) > nav:not(#mobile-menu) > div:first-child {
  opacity: 1;
  background-color: var(--nav-top-bg);
}

.bg-palette-navigationBackground-color.bg-palette-navigationBackground-color {
  --palette-navigationBackground-color: var(--nav-scrolled-bg) !important;
}

body.home header {
  background: transparent;
}

/* links */
#nav-links > div {
  justify-content: flex-end;
  align-items: center;
}

header #nav-links a {
  border: none;
  padding-bottom: 0.5rem;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--p-font) !important;
}

header #nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--nav-link-scrolled-hvr-clr);
  transition: var(--transition);
}

header #nav-links a:hover::after {
  width: 100%;
}

/* custom banner nav links */
body.home header:not(.custom-scroll) #nav-links a {
  color: var(--nav-link-top-clr);
}

body.home header:not(.custom-scroll) #nav-links a:hover {
  color: var(--nav-link-top-hvr-clr);
}

body.home header:not(.custom-scroll) #nav-links a:hover::after {
  background: var(--nav-link-top-border);
}

/* scrolled and pages nav links */
body.home header.custom-scroll #nav-links a,
body.pages header #nav-links a {
  color: var(--nav-link-scrolled-clr);
}

body.home header.custom-scroll #nav-links a:hover,
body.pages header #nav-links a:hover {
  color: var(--nav-link-scrolled-hvr-clr);
}

body.home header.custom-scroll #nav-links a:hover::after,
body.pages header #nav-links a:hover::after {
  background: var(--nav-link-scrolled-border);
}

nav.top-nav a:hover {
  color: var(--nav-link-scrolled-hvr-clr);
}

/* icons */
#nav-icons svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: var(--transition);
}

body.home header #nav-icons svg {
  fill: var(--nav-icon-top-clr);
  color: var(--nav-icon-top-clr);
}

body.home header.custom-scroll #nav-icons svg,
body.pages header #nav-icons svg {
  fill: var(--nav-icon-scrolled-clr);
  color: var(--nav-icon-scrolled-clr);
}

/* miranda */
.user-contact-icons ul li a svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--nav-icon-scrolled-clr);
}

.user-contact-icons ul li a:hover,
.user-contact-icons ul li a:hover svg {
  color: var(--nav-icon-scrolled-hvr-clr);
  fill: var(--nav-icon-scrolled-hvr-clr);
}

#nav-menu-button svg path {
  transition: d 300ms ease;
}

#nav-menu-button svg:hover path {
  d: path("M 4 8 h 16 M 4 12 h 16 M 4 16 h 16");
}

/* miranda fixes */
@media (min-width: 451px) {
  .user-contact-icons ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

.user-contact-icons .svg-inline--fa:not(.fa-bars) {
  display: none;
}

.user-contact-icons ul li a {
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: var(--transition);
}

.user-contact-icons ul li a:hover svg {
  transition: var(--transition);
}

nav.top-nav a {
  transition: var(--transition);
}

/* mobile menu */
body #mobile-menu > div > div.pl-12.pr-32.pt-16.pb-8.flex.flex-col.h-mobile-nav-inner.sm\:h-screen.overflow-y-auto {
  background-color: var(--palette-navigationBackground-color) !important;
  height: calc(100vh - 115px);
}

#mobile-menu .text-palette-navigationLink-color {
  color: var(--menu-link-clr) !important;
  transition: var(--transition);
  border-bottom: none;
  padding-bottom: 0.25rem;
  position: relative;
  font-size: 0.85em;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--p-font) !important;
}

#mobile-menu .text-palette-navigationLink-color:not(.flex):after {
  content: "";
  display: block;
  width: 1rem;
  height: 1px;
  background-color: var(--menu-link-border);
  transition: var(--transition);
}

#mobile-menu .text-palette-navigationLink-color:not(.flex):hover:after {
  width: 100%;
}

#mobile-menu > div > div.pl-12.pr-32.pt-16.pb-8.flex.flex-col.h-mobile-nav-inner.sm\:h-screen.overflow-y-auto > div.sm\:hidden.pt-9.border-t.border-medium-gray,
#mobile-menu > div > div.sm\:hidden.p-4.absolute.bottom-0.p-11.text-white.bg-dark-gray.w-full {
  display: block;
}

#mobile-menu .bg-dark-gray {
  background-color: var(--menu-footer-bg);
}

/* nav social */
#navSocialMedia {
  gap: 1rem;
  margin-top: 0 !important;
}

#navSocialMedia a.social-icon-footer {
  font-size: 0.75em;
  display: block;
  transition: var(--transition);
}

#navSocialMedia a.social-icon-footer:hover {
  color: var(--secondary);
}


 /* ─── HERO ──────────────────────────────────────────────── */
 .csv-hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 2rem;
  min-height: 60vh;
  min-height: 60dvh;
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.csv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, .5) 0%,
      rgba(0, 0, 0, .3) 50%,
      rgba(0, 0, 0, .55) 100%);
  z-index: 1;
}

.csv-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: 2rem;
}

/* Ghost brokerage line above title */
.csv-hero-brand {
  font-family: var(--h-font);
  font-size: clamp(22px, 4vw, 52px) !important;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #fff !important;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.2em;
}

.csv-hero-brand .red {
  color: var(--primary) !important;
}

.csv-hero-title {
  font-family: var(--p-font) !important;
  font-size: clamp(18px, 3vw, 38px) !important;
  font-weight: 300 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff !important;
  margin: 0 0 0.6em !important;
  line-height: 1.1;
  border: none !important;
  padding: 0 !important;
}

.csv-hero-tagline {
  font-family: var(--p-font);
  font-size: clamp(10px, 1.2vw, 12px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff !important;
  margin: 0 0 1.8em !important;
}

.csv-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── HERO ─────────────────────────────────────────────────── */
#custom-hero {
  min-height: var(--hero-height-fb);
  min-height: var(--hero-height);
  position: relative;
  display: grid;
  background-position: center;
  background-size: cover;
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.custom__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.--yt-banner {
  overflow: hidden;
}

#hero-yt {
  position: absolute;
  left: 0;
  width: 100%;
  top: -90px;
  height: calc(100% + 90px);
  object-fit: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
  z-index: 1;

  .custom__video-background {
    iframe {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 56.25vw;
      min-height: calc(100vh + 90px);
      min-width: calc(177.77vh + 160px);
      transform: translate(-50%, -50%);
    }
  }
}

#custom-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-image: var(--hero-overlay);
}

#custom-hero .custom-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 3;
  padding-inline: 1.5rem;
  width: min(var(--hero-content-width), 100%);
  left: 50%;
  transform: translateX(-50%);
}

#custom-hero img.banner_logo {
  padding: 1rem;
}

#custom-hero h1 {
  text-align: center;
  letter-spacing: var(--hero-title-spacing);
  margin: 0;
  padding: 0;
  border: none;
  text-shadow: 0 2px 20px rgb(0, 0, 0, .3);
  font-size: var(--hero-title-size-mbl);
  font-weight: var(--hero-title-weight);
  color: var(--hero-title-clr);
  text-transform: var(--hero-title-case);
  line-height: 1.05;
  text-wrap: balance;

  @media (min-width: 768px) {
    font-size: var(--hero-title-size-lg);
    text-wrap: wrap;
  }

  span.--sub {
    display: block;
    font-size: var(--hero-sub-size-mbl);
    margin-bottom: 1rem;
    font-weight: var(--hero-sub-weight);
    font-family: var(--hero-sub-font);
    text-wrap: balance;
    letter-spacing: var(--hero-sub-spacing);
    text-transform: var(--hero-sub-case);
    /* padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .35); */

    @media (width > 768px) {
      font-size: var(--hero-sub-size-lg);
    }
  }

  &.--top {
    margin-top: 0;
    margin-bottom: .5rem;
  }

  &.--lg {
    font-size: calc(var(--hero-sub-size-mbl) + 4px);
    font-weight: var(--hero-title-weight);
  }
}

#custom-hero h2 {
  text-align: center;
  color: #fff;
  line-height: 1;
  margin: 0;
  padding: 0;
  margin-top: 1em;
}

#custom-hero #custom-search-tabs {
  display: grid;
  margin-top: 0.5rem;
  gap: 12px;
  position: relative;
  z-index: 3;
  width: 100%;
  /* max-width: 480px; */

  @media (min-width: 768px) {
    grid-template-columns: repeat(var(--number-of-tabs), 1fr);
  }

  a {
    display: inline-block;
    line-height: 1;
    letter-spacing: var(--hero-tab-txt-spacing);
    color: var(--hero-tab-txt-clr);
    transition: var(--transition);
    padding: var(--hero-tab-padding);
    background-color: var(--hero-tab-bg-clr);
    text-align: center;
    font-size: var(--hero-tab-txt-size);
    font-weight: var(--hero-tab-weight);
    text-transform: var(--hero-tab-case);
    border: var(--hero-tab-border);

    &:hover {
      color: var(--hero-tab-hvr-txt-clr);
      background-color: var(--hero-tab-hvr-bg-clr);
      border-color: var(--hero-tab-hvr-border-clr);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgb(0, 0, 0, .18);
    }
  }
}

.home #custom-hero #react-typeahead {
  width: 100%;
  max-width: 100%;
}

/* page updates */
.text-hero {
  text-shadow: 0 2px 16px rgb(0, 0, 0, .4);
}

.h-hero-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, .2);
  z-index: 2;
}

.h-hero-image > div:nth-child(2) {
  position: relative;
  z-index: 3;
}


/* ── MAP ──────────────────────────────────────────────────── */
.mapsearch .search-results,
.mapsearch .viewport {
  width: 100%;
  max-width: 100%;
}


  /* ── CTA Bar ─────────────────────────────────────────────── */
 
  #cta-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-block: 40px;
    padding: 32px 40px;
    background-color: #1a1a1a;
    overflow: hidden;
  }
 
  /* diagonal accent stripe */
  #cta-bar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 120px;
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.12);
    transform: skewX(-12deg);
    transform-origin: top;
  }
 
  /* subtle top highlight line */
  #cta-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
  }
 
  #cta-bar .text-block {
    flex: 1;
    min-width: 200px;
  }
 
  #cta-bar .text-block h2 {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
 
  #cta-bar .text-block p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 500;
  }
 
  a.ctabarBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 14px 28px;
    padding-right: 20px;
    background-color: transparent;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: background-color 250ms ease, color 250ms ease, gap 250ms ease;
    white-space: nowrap;
  }
 
  a.ctabarBtn::after {
    content: '\f061'; /* fa-arrow-right — swap this value to change icon */
    font-family: 'FontAwesome';
    font-weight: 300; /* 300 = fa-light */
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    transition: 250ms ease;
    margin-left: 0;
    margin-right: 8px;
  }
 
  a.ctabarBtn:hover {
    
    background-color: var(--primary);
    color: #fff !important;
  }
 
  a.ctabarBtn:hover::after {
    margin-left: 8px;
    margin-right: 0;
  }
 
  @media (max-width: 600px) {
    #cta-bar {
      flex-direction: column;
      align-items: flex-start;
      padding: 28px 24px;
    }
 
    a.ctabarBtn {
      width: 100%;
      justify-content: center;
    }
  }
  /* =============================================================================
   2. ACCORDION (shared — used in area, market, and sidebar)
   ============================================================================= */

  details.new-accordion {
    overflow: hidden;
  }

  details.new-accordion summary.new-accordion-title::-webkit-details-marker {
    display: none;
  }

  details.new-accordion summary.new-accordion-title {
    position: relative;
    z-index: 2;
  }

  details.new-accordion[open]> :not(summary.new-accordion-title) {
    color: inherit;
    border-left: none !important;
    border-right: none !important;
  }

  summary.new-accordion-title {
    border: 1px solid transparent;
    border-bottom-color: #D7D7D7;
    outline: none;
    padding: 16px;
    padding-left: 0;
    position: relative;
    cursor: pointer;
    transition: 300ms ease;
    color: #000;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  summary.new-accordion-title::after {
    content: '\f00d';
    font-family: FontAwesome;
    color: #000;
    font-size: 16px;
    line-height: 1rem;
    transform: rotate(-45deg);
    transform-origin: center;
    transition: .2s transform ease;
  }

  details.new-accordion[open]>summary.new-accordion-title::after {
    transform: rotate(90deg);
    transition: transform ease 1s;
  }

  details.new-accordion[open] summary.new-accordion-title,
  summary.new-accordion-title:hover {
    padding-left: 16px;
    background: #f8f8f8;
  }

  .new-accordion-content {
    padding: 10px;
    border: 1px solid #D7D7D7;
    border-top: none;
    background-color: #f8f8f8;
  }

  .new-accordion-content ul.list {
    display: grid !important;
    gap: 1rem;
    list-style-type: none;
  }

  .new-accordion-content ul.list li {
    width: auto !important;
    margin: 0;
  }

  .new-accordion-content ul.list li a {
    display: block;
    transition: 300ms ease;
  }

  .new-accordion-content ul.list li a:hover {
    color: #000;
  }

  @media (width > 768px) {
    .new-accordion-content ul.list.two_column {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* Area/market page: smaller accordion title font */
  #--area .new-accordion-content ul.list,
  #--market .new-accordion-content ul.list,
  .--areaSearches .new-accordion-content ul.list,
  .--areaSearchesFull .new-accordion-content ul.list {
    gap: 8px;
  }

  #--area summary.new-accordion-title,
  #--market summary.new-accordion-title,
  .--areaSearches summary.new-accordion-title,
  .--areaSearchesFull summary.new-accordion-title {
    font-size: 16px;
  }


  /* =============================================================================
   3. SHARED AREA-NAV LINK
   ============================================================================= */

  a.area-nav-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    position: relative;
    color: var(--primary) !important;
    background-color: transparent;
    border: 1px solid var(--primary) !important;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    min-height: 42px;
    transition: 300ms ease;
  }

  a.area-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 23px;
    z-index: 2;
    background-color: var(--primary);
    opacity: 0;
    transition: 300ms ease;
  }

  a.area-nav-link svg {
    height: 24px;
    width: 24px;
    padding: 8px;
    border-right: 1px solid;
    background-color: var(--primary);
    color: var(--third) !important;
    transition: 300ms ease;
    position: relative;
    z-index: 3;
  }

  a.area-nav-link span {
    position: relative;
    z-index: 3;
  }

  a.area-nav-link:hover {
    color: var(--third) !important;
  }

  a.area-nav-link:hover::before {
    opacity: 1;
    width: 100%;
  }


  /* =============================================================================
   4. AREA PAGE
   ============================================================================= */

   body:has(#--area) .h-hero-image {
    height: 40vh;
    min-height: max-content;
   }

  #--areaMap {
    width: 100%;
    min-height: 400px;
  }

  #--area {
    container-type: inline-size;
  }

  /* Area nav grid */
  #--area .--area-nav {
    margin-bottom: 32px;
    display: grid;
    gap: 16px;
  }

  @container (width > 550px) {
    #--area .--area-nav {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @container (width > 900px) {
    #--area .--area-nav {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  /* Area searches — 2-column grid */
  .--areaSearches {
    display: grid;
    gap: 16px;
    margin-block: 32px;
  }

  @container (width > 550px) {
    .--areaSearches {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Area searches full-width variant */
  .--areaSearchesFull {
    margin-block: 32px;
  }

  .--areaSearchesFull details.new-accordion {
    width: fit-content;
  }

  .--areaSearchesFull.--full details.new-accordion {
    width: 100%;
  }


  /* =============================================================================
   5. MARKET REPORT PAGE
   ============================================================================= */

  #--market {
    container-type: inline-size;
  }

  #--market .--area-nav {
    margin-bottom: 32px;
    display: grid;
    gap: 16px;
  }

  @container (width > 550px) {
    #--market .--area-nav {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @container (width > 900px) {
    #--market .--area-nav {
      grid-template-columns: repeat(3, 1fr);
    }
  }


  /* =============================================================================
   6. SIDEBAR
   ============================================================================= */

  .sidebar-link a,
  .new-accordion-content a {
    color: var(--secondary);
    transition: 300ms ease;
  }

  .sidebar-link a:hover,
  .new-accordion-content a:hover {
    color: var(--primary);
  }

  #featured-agent-group {
    display: none;
  }

  .sidebar-nav {
    display: grid;
    gap: 16px;
    margin-top: 16px;
  }

  .sidebar-nav .sidebar-nav-link {
    border: 1px solid transparent;
    border-bottom-color: #D7D7D7;
    outline: none;
    padding: 16px;
    padding-left: 0;
    position: relative;
    cursor: pointer;
    transition: 300ms ease;
    color: #000;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  .sidebar-nav .sidebar-nav-link em span {
    display: none;
  }

  .sidebar-nav .sidebar-nav-link:hover {
    padding-left: 16px;
    padding-right: 8px;
    background: #f8f8f8;
  }


  /* =============================================================================
   7. CONTACT CARD
   ============================================================================= */

  .contact-card {
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .15);
    border-radius: 1rem;
    width: min(350px, 100%);
    position: relative;
    margin: auto;
    transition: 250ms ease;
    padding-top: 1rem;
  }

  .contact-card p.cardHeader {
    color: #000;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
  }

  .contact-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #f6f6f6, transparent);
    transition: 250ms ease;
    border-radius: 1rem;
  }

  .contact-card:hover {
    cursor: pointer;
    box-shadow: 0 5px 10px 2px rgba(0, 0, 0, .15), 0 .25rem 0 0 var(--secondary);
  }

  .contact-card:hover::before {
    height: 100%;
  }

  .contact-card>* {
    position: relative;
    z-index: 2;
  }

  .contact-card img {
    margin: auto;
    object-position: top;
    height: unset !important;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
  }

  .contact-card h2.agent-name {
    margin: 0 0 1.25em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  /* Contact bar */
  .contact-card .contact-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-card .contact-bar>a {
    text-align: center;
    padding: .5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: 250ms ease;
    backface-visibility: hidden;
    background: var(--primary);
    color: #fff !important;
  }

  .contact-card .contact-bar>a:nth-child(2) {
    background: var(--secondary);
  }

  .contact-card .contact-bar>a:hover,
  .contact-card .contact-bar>a:target,
  .contact-card .contact-bar>a:focus {
    transform: scale(.95);
    color: #fff !important;
  }

  /* Social bar */
  .contact-card .social-bar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-block: 1rem;
  }

  .contact-card .social-bar>a {
    padding: .5rem;
    display: inline-block;
    transition: 250ms ease;
    border-radius: .5rem;
    color: var(--primary);
    line-height: 1;
  }

  .contact-card .social-bar>a svg {
    height: 20px;
    width: 20px;
  }

  .contact-card .social-bar>a:hover {
    color: #fff !important;
  }

  .contact-card .social-bar>a.facebook-icon:hover {
    background-color: #3b5999;
  }

  .contact-card .social-bar>a.instagram-icon:hover {
    background-color: #e4405f;
  }

  .contact-card .social-bar>a.twitter-icon:hover {
    background-color: #55acee;
  }

  .contact-card .social-bar>a.youtube-icon:hover {
    background-color: #cd201f;
  }

  .contact-card .social-bar>a.linkedin-icon:hover {
    background-color: #0077b5;
  }

  .contact-card .social-bar>a.pinterest-icon:hover {
    background-color: #c8232c;
  }

  .contact-card .social-bar>a.google-icon:hover {
    background-color: #4285f4;
  }

  .contact-card .social-bar>a.tiktok-icon:hover {
    background-color: #ff0050;
  }

  .contact-card .social-bar>a.zillow-icon:hover {
    background-color: #006AFF;
  }

  .contact-card .social-bar>a span {
    display: none;
  }

  .contact-card .social-bar em {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Lender card variant */
  .contact-card.--lender p.lenderDetail {
    font-size: 14px;
    margin: 0;
    text-align: center;
  }

  .contact-card.--lender .contact-bar {
    margin-block: 16px;
  }

  .contact-card.--lender .contact-bar.--0 {
    display: none;
  }

  .contact-card.--lender .contact-bar.--1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .contact-card.--lender .contact-bar.--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card.--lender .contact-bar.--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


  /* =============================================================================
   8. AGENT PAGE
   ============================================================================= */

  .agent-page #content h1 {
    margin-bottom: 16px;
  }

  #--agentBio .agentInfo {
    margin-bottom: 16px;
  }

  #--agentBio .agentInfo:has(div:nth-child(2)) {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
  }

  #--agentBio .agentInfo .--agentSocial {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  #--agentBio .agentInfo .--agentSocial svg,
  #--agentBio .agentInfo .--agentSocial em {
    height: 24px;
    width: 24px;
    color: var(--primary);
    transition: 300ms ease;
  }

  #--agentBio .agentInfo .--agentSocial svg:hover,
  #--agentBio .agentInfo .--agentSocial em:hover {
    color: var(--secondary);
  }

  #--agentBio .--agentCta {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
  }

  /* Agent CTA link reuses area-nav-link styles — add span padding override */
  #--agentBio .--agentCta>a.agent-contact-link span {
    padding-right: 8px;
  }


  /* =============================================================================
   9. LISTINGS (mce-content)
   ============================================================================= */

  .mce-content #listings .pt-listing-image-container {
    padding-top: 79%;
  }

  .mce-content #listings .mt-listing-image {
    margin-top: -79.28%;
    display: block;
  }

  .mce-content #listings .pt-listing-image-container-small {
    padding-top: 49%;
  }

  .mce-content #listings .mt-listing-image-small {
    margin-top: -49.28%;
  }


  /* =============================================================================
   10. HEADER / NAV (non-home pages)
   ============================================================================= */

  body:not(.home) header {
    transition: 300ms ease;
  }

  body:not(.home) header #mobile-menu .bg-palette-navigationBackground-color {
    background-color: var(--palette-navigationBackground-color) !important;
  }

  body:not(.home) header #mobile-menu .text-palette-navigationLink-color {
    color: var(--palette-navigationLink-color) !important;
  }

  body:not(.home) header:not(.transparent) {
    box-shadow: 0 1px 8px rgb(0 0 0 / 0.15);
  }

  body:not(.home) header:not(.transparent) #nav-links a,
  body:not(.home) header:not(.transparent) #nav-icons button {
    color: var(--palette-navigationLink-color);
  }

  body:not(.home) nav.top-nav .user-contact-icons svg {
    width: 25px;
    height: 25px;
    vertical-align: middle;
  }

  @media (width > 450px) {
    body:not(.home) nav.top-nav .user-contact-icons li {
      height: auto;
    }
  }


  /* =============================================================================
   11. MIRANDA THEME OVERRIDES
   ============================================================================= */

  /* Footer */
  .miranda-wrapper .main-footer {
    background: #fff;
  }

  .miranda-wrapper .main-footer p {
    margin: 0;
    color: #000;
  }

  .miranda-wrapper .main-footer p a,
  .miranda-wrapper .main-footer a {
    color: var(--primary);
    transition: 300ms ease;
  }

  .miranda-wrapper .main-footer p a:hover,
  .miranda-wrapper .main-footer a:hover {
    color: var(--secondary);
  }

  .miranda-wrapper .main-footer .footer-section:last-child h3 {
    color: #000;
  }

  /* Area nav (miranda) */
  .miranda-wrapper .--area-nav {
    margin-top: 16px;
    border-top: 1px solid #ddd;
    padding-top: 16px;
  }

  /* Searches link colors (miranda) */
  .miranda-wrapper .--areaSearches ul.list li {
    padding: 0;
  }

  .miranda-wrapper .--areaSearches ul.list li a {
    color: var(--primary);
    transition: 300ms ease;
  }

  .miranda-wrapper .--areaSearches ul.list li a:hover {
    color: var(--secondary);
  }

  /* Sidebar spacing (miranda) */
  .miranda-wrapper .sidebar .contact-card {
    margin-bottom: 32px;
  }

  .miranda-wrapper .sidebar .mortgage_calculator {
    margin-top: 32px !important;
  }

.search-results .sub-bar svg {
  margin-right: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   REFERENCE SITE PATTERNS — appended to existing homepage.css
   Prefix: .ref-  to avoid collisions with existing classes
   ═══════════════════════════════════════════════════════════════ */


/* ── HERO (ref pattern) ────────────────────────────────── */
#custom-hero.ref-hero {
  position: relative;
  height: var(--hero-height-fb);
  height: var(--hero-height);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#custom-hero.ref-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.ref-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 2rem;
  max-width: var(--hero-content-width);
}

.ref-hero-eyebrow {
  font-family: var(--p-font);
  font-size: var(--hero-sub-size-mbl);
  font-weight: var(--hero-sub-weight);
  letter-spacing: var(--hero-sub-spacing);
  text-transform: var(--hero-sub-case);
  color: var(--hero-title-clr);
  opacity: 0.75;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ref-hero-eyebrow {
    font-size: var(--hero-sub-size-lg);
  }
}

.ref-hero-title {
  font-family: var(--h-font) !important;
  font-size: var(--hero-title-size-mbl);
  font-weight: var(--hero-title-weight);
  letter-spacing: var(--hero-title-spacing);
  text-transform: var(--hero-title-case);
  color: var(--hero-title-clr);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

@media (min-width: 768px) {
  .ref-hero-title {
    font-size: var(--hero-title-size-lg);
  }
}

.ref-hero-tagline {
  font-family: var(--p-font);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 2.5rem;
}

.ref-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.ref-btn-outline-white {
  display: inline-block;
  padding: 0.85rem 2rem;
  text-align: center;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7em;
  font-weight: 500;
  font-family: var(--p-font) !important;
  transition: var(--transition);
  text-decoration: none !important;
}

.ref-btn-outline-white:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.15);
}


/* ── ABOUT (ref pattern) ───────────────────────────────── */
.ref-about { background-color: var(--surface); }

.ref-about-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 768px) {
  .ref-about-inner { grid-template-columns: 2fr 3fr; }
}

.ref-about-img { overflow: hidden; }

.ref-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  max-height: 620px;
}

.ref-about-text { display: flex; flex-direction: column; }

.ref-overline {
  display: block;
  font-family: var(--p-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.ref-divider-v {
  width: 40px;
  height: 1px;
  background-color: var(--secondary);
  margin-bottom: 1.5rem;
}

.ref-about-text h2 {
  font-family: var(--h-font) !important;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.ref-subtitle {
  font-family: var(--p-font);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.5rem !important;
}

.ref-rule {
  width: 40px;
  height: 1px;
  background-color: var(--primary);
  margin-bottom: 1.5rem;
}

.ref-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.ref-bttn {
  display: inline-block;
  padding: 0.85rem 2rem;
  text-align: center;
  color: #fff !important;
  background: var(--primary);
  border: 1px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7em;
  font-weight: 500;
  font-family: var(--p-font) !important;
  transition: var(--transition);
  text-decoration: none !important;
  min-width: 160px;
}

.ref-bttn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ref-bttn-alt {
  display: inline-block;
  padding: 0.85rem 2rem;
  text-align: center;
  color: var(--primary) !important;
  background: transparent;
  border: 1px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7em;
  font-weight: 500;
  font-family: var(--p-font) !important;
  transition: var(--transition);
  text-decoration: none !important;
  min-width: 160px;
}

.ref-bttn-alt:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(135, 132, 109, 0.3);
}


/* ── COMMUNITIES PHOTO GRID (ref pattern) ──────────────── */
.ref-communities-section { padding-bottom: 0 !important; }

.ref-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .ref-photo-grid { grid-template-columns: repeat(3, 1fr); }
}

.ref-photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  text-decoration: none !important;
}

.ref-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.06);
  transition: transform 0.6s ease, opacity 0.5s ease;
  display: block;
}

.ref-photo-tile:hover img {
  transform: scale(1.0);
  opacity: 0.55;
}

.ref-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  color: #fff;
  font-family: var(--p-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  transition: var(--transition);
}

.ref-photo-tile:hover .ref-photo-label { letter-spacing: 4px; }


/* ── TESTIMONIALS (ref pattern) ────────────────────────── */
.ref-testimonials { border-top: 1px solid rgba(255, 255, 255, 0.07); }

.ref-testimonials-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-testimonial {
  text-align: center;
  padding-inline: clamp(1rem, 7vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-testimonial-quote {
  font-family: var(--h-font) !important;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.7;
  margin-bottom: 1.5rem !important;
  max-width: 70ch;
}

.ref-testimonial-cite {
  display: block;
  font-family: var(--p-font);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary) !important;
  font-style: normal;
}

.ref-testimonials-footer { margin-top: 2.5rem; text-align: center; }


/* ── RESOURCES STRIP (ref pattern) ────────────────────── */
#custom-resources {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ref-resources-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

@media (min-width: 768px) {
  .ref-resources-inner { grid-template-columns: repeat(4, 1fr); }
}

.ref-resource-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem;
  gap: 1rem;
  text-decoration: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.ref-resource-tile:last-child { border-right: none; }

@media (max-width: 767px) {
  .ref-resource-tile:nth-child(2),
  .ref-resource-tile:nth-child(4) { border-right: none; }

  .ref-resource-tile:nth-child(1),
  .ref-resource-tile:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

.ref-resource-tile:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.ref-resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.ref-resource-tile:hover .ref-resource-icon {
  background-color: var(--primary);
  color: #fff;
}

.ref-resource-icon svg { width: 22px; height: 22px; }

.ref-resource-title {
  font-family: var(--p-font) !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75) !important;
  margin: 0;
  transition: var(--transition);
}

.ref-resource-tile:hover .ref-resource-title { color: #fff !important; }


/* ── FINAL CTA (ref pattern) ───────────────────────────── */
#custom-cta.ref-final-cta .cta-content .btn-group a {
  display: inline-block;
  padding: 0.85rem 2rem;
  text-align: center;
  color: #fff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7em;
  text-decoration: none !important;
}

#custom-cta.ref-final-cta .cta-content .btn-group a:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.15);
}

#custom-cta.ref-final-cta .ref-overline {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 4px;
}